const express = require('express')
const router = express.Router()
const path = require('path')

// 提供地图文档
router.get('/mapx/:filename', (req, res) => {
  const { filename } = req.params
  const filePath = path.join(__dirname, '../../', filename)
  res.sendFile(filePath)
})

module.exports = router
